package com.kitty.game.gm.handler100;

import com.kitty.common.utils.SpringUtils;
import com.kitty.game.party.service.PartyService;
import com.kitty.game.role.model.Role;
import com.kitty.game.team.message.RespMsg;
import com.kitty.mina.message.MessagePusher;

public class NCBanggong implements NCGmFather {
    @Override
    public void handle(Role role, String name) {
        int value = Integer.parseInt(name);
        SpringUtils.getBean(PartyService.class).addContrib(role, value);
        MessagePusher.pushMessage(role, new RespMsg("发送帮贡成功！"));
    }
}
